/**
 * 
 */
package com.hera.process.web.primefaces.controller;
import java.util.ArrayList;
import java.util.List;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.bean.ViewScoped;


/**
 * @author cmontes
 *
 */
@ManagedBean(name="taskController")
@ViewScoped
@RequestScoped
public class TaskController {

private List<Task> listTasks;


	
	public TaskController(){
		listTasks = new ArrayList<Task>();
		for(int i=0; i<13; i++){
			Task task = new Task();
			task.setNombre("Tarea 1 " + i);
			listTasks.add(task);
		}
	}
	
	
	

	
	
	public List<Task> getListTasks() {
		return listTasks;
	}

	public void setListTasks(List<Task> listTasks) {
		this.listTasks = listTasks;
	}
    
	public String detail(){	
		System.out.println("ir al detalle");
		return "detail_task";	
	}
    
	
	public String returnInbox(){
		System.out.println("regresa al inbox");
		return "inbox";
	}



}
